package com.bruan.d1_io;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class FileWriterTest2 {
    public static void main(String[] args) {
        try{
            Writer writer =  new FileWriter("file-io-app\\bruan.txt");
            writer.write('a');
            writer.write('s');
            writer.write('2');
            writer.write('?');
            //???????????dma????????????????
            //??????????????????????Ч??????????????????
            writer.flush();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }

    }
}
